package com.tanxi521.springboot.mapper;

import com.tanxi521.springboot.pojo.OfficialMessage;
import com.tanxi521.springboot.pojo.Page;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface OfficialMessageMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(OfficialMessage record);

    int insertSelective(OfficialMessage record);

    OfficialMessage selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(OfficialMessage record);

    int updateByPrimaryKey(OfficialMessage record);

    List<OfficialMessage> selectOfficialMessage(Page page);

    int selectMessageCount();

    int deleteOfficialMessage(List<Integer> ids);

    List<OfficialMessage> selectAllOfficialMessage(Page page, OfficialMessage officialMessage);

    int selectAllMessageCount(OfficialMessage officialMessage);
}